package com.myk.game.heroscuffle.signs;

public class CountSign_ChanDou extends CountSign {

    private static final int REDUCE_ATK = 20; //减少敌人的攻击力数值

    public CountSign_ChanDou() {
        super("颤抖", 1);
    }

    @Override
    protected void onPaste() {
        int atkDownTo = hostHero.getAtkDownTo();
        if (atkDownTo > REDUCE_ATK) {
            hostHero.atk -= REDUCE_ATK;
            game.ui.printMsg(hostHero.getObviousName() + "筋骨受损,atk减少" + REDUCE_ATK + ",当前" + hostHero.atk + "点。");
        }
        else {
            hostHero.atk -= atkDownTo;
            game.ui.printMsg(hostHero.getObviousName() + "筋骨受损,atk减少至" + hostHero.atk + "点(已达下限)。");
        }
        game.ui.sleepShortly();
    }

    @Override
    protected void onRemove() {
        hostHero.atk += REDUCE_ATK;
        game.ui.printMsg(hostHero.getObviousName() + "atk恢复至" + hostHero.atk + "点。");
    }
}
